using System;
using System.Collections.Generic;
using System.Data;
using System.Xml;

namespace AliCMS
{
    public class TreeNode
    {
        #region Properties
        public DataRow Row
        {
            get { return _row; }
            set { _row = value; }
        }
        public List<TreeNode> ChildNodes
        {
            get { return _childNodes; }
            set { _childNodes = value; }
        }
        public TreeNode Parent
        {
            get { return _parent; }
            set { _parent = value; }
        }
        public TreeNode Prev
        {
            get { return _prev; }
            set { _prev = value; }
        }
        public TreeNode Next
        {
            get { return _next; }
            set { _next = value; }
        }

        #endregion

        #region Fields
        private DataRow _row;
        private List<TreeNode> _childNodes;
        private TreeNode _parent = null;
        private TreeNode _prev = null;
        private TreeNode _next = null;
        #endregion
    }

    public delegate string CustomBuild(DataRow row, int index);
    public delegate string CustomBuildTree(TreeNode treeNode, int index);
}
